From jupyter.org:
An open-source web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text.
The "document", aka "notebook", is composed of Code and Markdown cells, which you interact with using Command and Edit mode.
In [1]:
hello = 'Hello, {}!'
who = input('Who? ')
hello.format(who)
Out[1]:
In [ ]:
IPython is a powerful replacement for the standard Python shell, which spawned the IPython Notebook. Eventually, the developers extracted the language-independent features of notebook web application to create the Jupyter Notebook. This "Big Split" occurred almost 2 years ago, but you'll still find lots of references to IPython in documentation and examples.
Django Extensions makes this easy. From within your virtual environment:
(venv)$ pip install django-extensions jupyter
(venv)$ cd /path/to/notebooks
(venv)$ /path/to/manage.py shell_plus --notebook
This will start the Notebook server, then open the Notebook Dashboard in your default web browser. The Dashboard lists the contents of the directory, and provides tools for starting and managing individual notebooks.
.ipynb fileNOTE: There's a known issue with manage.py shell_plus --notebook for users who want to use the Notebook with multiple Django projects. Hopefully there will be a fix or a documented alternative soon.
In [ ]: